﻿using JmShared;
using SuperWebSocket.SubProtocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WebSocketServer.Filters;

namespace WebSocketServer.Commands
{
    [LoggedInValidationFilter(Order = 0)]
    [LogTimeCommandFilter(Order = 1)]
    public class Avatar : JsonSubCommand<JiveClientSession, AvatarTransfer>
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger
(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        protected override void ExecuteJsonCommand(JiveClientSession session, AvatarTransfer avatar)
        {
            session.ReceiveAvatar(avatar);
        }
    }
}
